<!DOCTYPE>
<html>
<body onload="runTest()">
<script>

if (window.testRunner)
    testRunner.dumpAsText();

function runTest() {
    document.open();
    getSelection().collapse(document, 0);
    getSelection().modify("move", "forward", "line");
    document.writeln('This test ensures WebKit does not crash when extending selection forward by line in an empty document.<br><br>');
    document.writeln('PASS.');
}
</script>
</body>
</html>
